var noWlPath;
var selectWlPathIDs;
var oldFloatWlPath;
var selectWlPathInRow;
var ifMultWlPath=0;
function selectWlPath(myID,inrow,WlPathColNo,ifMultWlPath,e){
	var floath=e.screenY-window.screen.availHeight+document.body.clientHeight+30;
	if(floath+255>document.body.clientHeight)floath=floath-255;
	var floatw=e.screenX;
	if(e.screenX+505>document.body.clientWidth)floatw=floatw-500;
		selectWlPathInRow=inrow;
		noWlPath=WlPathColNo;
		selectWlPathIDs=myID;
		//ifMult=ifMults;
		
		oldFloatWlPath = dijit.byId("selectWlPathFloat_1");
		if(oldFloatWlPath==undefined){
			var div = dojo.doc.createElement('div');
			dojo.body().appendChild(div);
			var fp = new dojox.layout.FloatingPane({id:"selectWlPathFloat_1",title:"????????",
				maxable: true,closable: true,resizable: true ,dockable:true,
				href:"../common/selectWlPathFloat.html"},div);
			dojo.style(fp.domNode,{
				width:"500px",height:"255px",top:floath, left:floatw,position:"absolute",zIndex:"980"});
			oldFloatWlPath=fp;
			fp.startup();
			fp.show();
			
		}else{
			dojo.style(oldFloatWlPath.domNode,{width:"500px",height:"255px",
				top:floath, left:floatw,
				position:"absolute",zIndex:"980"});
			oldFloatWlPath.show();
		}
}


function WlPathVOJs(){
   this.id
   ; this.pathName
   ; this.startPlace
   ; this.endPlace
   ; this.distance
   ; this.loanStandard
   ; this.time
   ; this.startPlaceID
   ; this.endPlaceID

}

function WlPathVOtoArray_fun(ulvo,edit){
            var querydata=new Array();
            var items = new Array();
            var ul=new Array();
            var ulo="";
            var le="";
            var d="",t;
            var arraytag="0";//isArray
            if(ulvo!=null){
              if(ulvo.length==undefined){
                 ul[0]=ulvo;
                 arraytag="1";
                 le=1;
              }else{
                 ul=ulvo;
                 le=ul.length;
              }        
              if(edit==false){
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:pathName"];//
                        t=ulo["ns:distance"];if(t!=null&&t!=undefined){items[3] =  t['ns:upNumber'];}
                        t=ulo["ns:loanStandard"];if(t!=null&&t!=undefined){items[4] =  t['ns:upNumber'];}
                        t=ulo["ns:time"];if(t!=null&&t!=undefined){items[5] =  t['ns:upNumber'];}
                         items[6] = WlPlaceVOtoArray_fun(ulo["ns:startPlaceID"],edit);
                         items[7] = WlPlaceVOtoArray_fun(ulo["ns:endPlaceID"],edit);
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  }else{//edit==true
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        items[2] = ulo["ns:pathName"];//
                        t=ulo["ns:distance"];if(t!=null&&t!=undefined){items[3] =  t['ns:upNumber'];}
                        t=ulo["ns:loanStandard"];if(t!=null&&t!=undefined){items[4] =  t['ns:upNumber'];}
                        t=ulo["ns:time"];if(t!=null&&t!=undefined){items[5] =  t['ns:upNumber'];}
                         items[6] = WlPlaceVOtoArray_fun(ulo["ns:startPlaceID"],edit);
                         items[7] = WlPlaceVOtoArray_fun(ulo["ns:endPlaceID"],edit);
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  } 
            }
			// !=null                     
            return querydata;
}